package com.cl.entity;

import javax.persistence.*;

import com.cl.entity.common.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the AUDIO_VIDEO database table.
 * 
 */
@Entity
@Table(name="AUDIO_VIDEO")
@NamedQuery(name="AudioVideo.findAll", query="SELECT a FROM AudioVideo a")
public class AudioVideo extends BaseEntity{
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="AUDIO_VIDEO_ID_GENERATOR", sequenceName="AUDIO_VIDEO_SEQ",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="AUDIO_VIDEO_ID_GENERATOR")
	private Long id;

	@Column(name="CLASS_NAME")
	private String className;

	@Lob
	private String modifytext;

	private String name;

	private String objkey;

	private BigDecimal span;

	private String summery;

	@Temporal(TemporalType.DATE)
	private Date uploaddate;

	private String url;

	public AudioVideo() {
		super();
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getClassName() {
		return this.className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getModifytext() {
		return this.modifytext;
	}

	public void setModifytext(String modifytext) {
		this.modifytext = modifytext;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getObjkey() {
		return this.objkey;
	}

	public void setObjkey(String objkey) {
		this.objkey = objkey;
	}

	public BigDecimal getSpan() {
		return this.span;
	}

	public void setSpan(BigDecimal span) {
		this.span = span;
	}

	public String getSummery() {
		return this.summery;
	}

	public void setSummery(String summery) {
		this.summery = summery;
	}

	public Date getUploaddate() {
		return this.uploaddate;
	}

	public void setUploaddate(Date uploaddate) {
		this.uploaddate = uploaddate;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public Object getPrimaryId() {
		// TODO Auto-generated method stub
		return id;
	}

}